<?php
/*
 * @Author: your name
 * @Date: 2020-03-27 09:12:07
 * @LastEditTime: 2020-03-27 11:49:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \applet_api\application\route.php
 */
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
// api.tp5.com ===> www.tp5.com/index.php/api
// Route::domain('api','api');

// 用户注册
Route::post('api/user/register','api/user/register');
// 用户登录
Route::post('api/user/login','api/user/login');
// 获取验证码
Route::post('api/code/getCode','api/code/get_code');

//Article
// 文章列表
Route::get('api/articles','api/article/get_articles');
// 创建文章
Route::post('api/article','api/article/create_article');
// 文章详情
Route::get('api/article','api/article/get_article_detail');
